<div class="pathname">
	<?php echo $this->breadcrumb($this->breadcrumb);?>
</div> <!-- end path name-->
<!-- begin Scheduling-->
<div class="content">
<div class="contentTopSub"></div><!-- end contentTop-->
    <div class="contentCenter">
    	<div class="fixContent fixtext">
        	<div id="tabs" class="header2">
                  <ul class="ui-widget-header2">
                  <?php if(is_array($this->tabs) && count($this->tabs)>0) {
                      $i = 0;
                      foreach($this->tabs as $tab):
                  ?>
                    <li><a href="#tabs-<?php echo ++$i;?>"><?php echo $tab['title']?></a></li>
                  <?php endforeach;?>
                  <li><a href="#tabs-<?php echo ++$i;?>"><?php echo $this->translate('register_button_label', $this->lang)?></a></li>
                  </ul>
                  <?php
                      $i = 0; 
                      foreach($this->tabs as $tab) :?>
                      <div id="tabs-<?php echo ++$i;?>">
                          <?php echo $tab['content'];?>
                      </div><!--end tabs-1-->
                  <?php endforeach;?>
                   <div id="tabs-<?php echo ++$i?>">
                       <h2 class="m10t"><?php echo $this->translate('form_register_title', $this->lang)?> "<?php echo $this->course['content']?>"</h2>
                         	<form><!-- Dang ky hoc -->
                    	<div class="inputForm">
                           <label><?php echo $this->translate('full_name', $this->lang)?><span class="r_color">*</span>:</label>
                               <input type="text" class="w-input" name="fullname" id="fullname"><br>
                           <label>Email<span class="r_color">*</span>:</label>
                               <input type="text" class="w-input" name="email" id="email"><br>
                           <label><?php echo $this->translate('phone', $this->lang)?><span class="r_color">*</span>:</label>
                               <input type="text" class="w-input" name="phone" id="phone"><br>
                       </div>
                       <?php if(is_array($this->subcourses) && count($this->subcourses) > 0) {?>
                       <div class="courseForm2">
                               <label><?php echo $this->translate('programs', $this->lang)?> <span class="r_color">*</span>:</label>
                               <?php foreach ($this->subcourses as $scourse) :?>
                                   <input type="radio" name="scourses" value="<?php echo $scourse['id']?>"/><span><?php echo $scourse['content']?></span><br>
                               <?php endforeach;?>
                       </div>
                       <div class="clear"></div>
                       <?php }?>
                       <div class="radioForm">
                           <label><?php echo $this->translate('register_location', $this->lang)?> <span class="r_color">*</span>:</label>
                           <?php $locations = json_decode($this->course['location'], true); ;
                                if(is_array($locations)) {foreach ($locations as $location) : ?>
                               <input type="radio" name="location" value="<?php echo $location?>"/><span><?php echo $location?></span>
                           <?php endforeach;}?>
                       </div>
                       <div class="clear"></div>
                       <div id="message" style="text-align: center;font-weight: bold;color: red;">&nbsp;</div>
                       <input type="hidden" value="<?php echo $this->course['id']?>" name="id" id="id">
                    </form>
                    <span id="registerbutton">
                        <a href="javascript:void(0);" class="btnSubmit" id="btnSubmitCourse">
                            <?php echo $this->translate('register_button_label', $this->lang)?> 
                        </a>
                    </span>
                  </div><!--end tabs-2-->
                <?php }?>
    </div><!--end tabs -->
    </div><!--fixContent-->
</div><!-- end contentCenter-->
<div class="contentBottom"></div><!-- end contentBottom-->
<?php echo $this->Commentbox(array('id' => $this->course['id']))?>
<div class="footer">
    <?php if(Utils_Global::getCurrentLanguage() == 'vi') {
        require_once(APPLICATION_PATH . '/modules/cms/layouts/scripts/footer.phtml');
    } else {
    	require_once(APPLICATION_PATH . '/modules/cms/layouts/scripts/footer_en.phtml');
    }?>
</div><!--footer-->
</div><!--end Scheduling-->